<?php
if($act=='edit')
{
	$sql_select = "SELECT * FROM tblproduct_category WHERE       				 
			cLanguage='$language' and iId = ".$id." ";
	$rs=$dbsql->query($sql_select);
	if ($dbsql->num_rows($rs)==0)
	{
		$msg = "Category Not Exists !";
		$page = "?";
		page_transfer($msg,$page);
	}
	
	$category = $dbsql->fetch_array($rs);
}else
{
    $category['iParentId']  = $id;
    $category['iStatus']    = 1;
}
?>
